<?php
// 示例的全局数据库配置文件
return array(
    'URL_MODEL'				=> 2,				// 如果你的环境不支持PATHINFO 请设置为3

    //开启字段类型验证
    'DB_FIELDTYPE_CHECK'	=> true,

    //是否开启令牌验证
    'TOKEN_ON'				=> true,

    //令牌验证的表单隐藏字段名称
    'TOKEN_NAME'			=> '__hash__',

    //令牌哈希验证规则 默认为 MD5
    'TOKEN_TYPE'			=> 'md5',

    //自动加载
    'APP_AUTOLOAD_PATH'		=> '@.Toolkit.,ORG.Response.,ORG.Request.,ORG.RestClient.,ORG.Auth.,ORG.Crypt.,ORG.Upload.,ORG.Paginator.,ORG.Encrypt.',

    //系统分组
    'APP_GROUP_LIST'		=> 'Advertising,Admin,Medium',

    //默认系统组
    'DEFAULT_GROUP'			=> 'Admin',

    //URL是否不敏感大小写
    'URL_CASE_INSENSITIVE'	=> false,

    //伪静态设置
    'URL_HTML_SUFFIX'		=> '.html',

    //模板内的点输出，现在是对象输出。obj为对象方式
    'TMPL_VAR_IDENTIFY'		=> 'obj',

    //URL的界定符
    'URL_PATHINFO_DEPR'     => '/',

    //自动侦测语言
    'LANG_AUTO_DETECT'      => false,

    //密码处理
    'PWD_CONFIG' =>array(
        'Prefix' => 'whlz',
        'Suffix' => 'safety'
    ),

    'REST_METHOD_LIST' =>'get,post,put,delete',

    'REST_DEFAULT_METHOD' => 'get',

    'REST_CONTENT_TYPE_LIST' =>'html,xml,json,rss',

    'REST_DEFAULT_TYPE'     => 'json',

    'REST_OUTPUT_TYPE'      => array(
        'json' => 'application/json',
        'xml' => 'application/xml',
        'html' => 'text/html',
    ),

    'LOAD_EXT_CONFIG' => 'db,menu,source,local',
    // 签名
    'SIGN_KEY'  => 'wuhanlanzhongsafety',

    'TMPL_PARSE_STRING'=>array(
        '__PUBLIC__'=>__ROOT__."/Public",
		'__ROOT__'=>__ROOT__,
    ),
    //开启布局

    'LAYOUT_ON'=>true,
    'LAYOUT_NAME'=>'layouts/admin',


    //成功跳转模板
    'TMPL_ACTION_SUCCESS'  => 'layouts:success',

    //错误信息跳转模板
    'TMPL_ACTION_ERROR'    => 'layouts:error',

    //请求数据的基础地址
    //'REQUEST_URL'           =>'http://192.168.1.10:81/safety/index.php/ScenterApi',

    //项目基本地址
    //'BASE_URL'              => 'http://192.168.1.10:81/advertising/index.php',
    'BASE_URL'              => 'http://dev.uu139.com/index.php',
    //'BASE_URL'              => 'http://localhost/advertising/index.php',

    //分页每页的条数
    'PER_PAGE'              =>  10,

    //上传图片的绝对地址
    //'UPLOAD_PATH'            =>'/home/guosheng/webroot/advertising/Public/uploads/img/',
    'UPLOAD_PATH'            =>'/home/lanzhong/web/advertising/Public/uploads/img/',

    //物联网接口地址
    'IOT_PATH'               => 'http://121.40.117.233/',
    //短信密钥
    'SMS_KEY'                => 'SMS0815',

    'SMS_PATH'               => 'http://sms.eeiot.cn/smssend/index.php',

);
?>
